package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/7/5.
 */

public class ReceiptInfo extends BaseModel<ReceiptInfo>  {

    /** 发票抬头*/
    public String receipt_name;
    /** 开户行和账号*/
    public String receipt_bank;
    /** 地址*/
    public String receipt_address;
    /** 电话*/
    public String receipt_phone;
    /** 发票类型*/
    public String receipt_type;
    /** 纳税人识别号*/
    public String receipt_num;
    /** 邮寄地址*/
    public String receipt_mailaddr;
    /** 其他信息*/
    public String receipt_message;

    @Override
    public ReceiptInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            receipt_name = jsonObject.optString("receipt_name");
            receipt_bank = jsonObject.optString("receipt_bank");
            receipt_address = jsonObject.optString("receipt_address");
            receipt_phone = jsonObject.optString("receipt_phone");
            receipt_type = jsonObject.optString("receipt_type");
            receipt_num = jsonObject.optString("receipt_num");
            receipt_mailaddr = jsonObject.optString("receipt_mailaddr");
            receipt_message = jsonObject.optString("receipt_message");
            return this;
        }
        return null;
    }
}
